<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>版块网站导航设置 - 后台管理</title>
	<link rel="shortcut icon" type="image/ico" href="/images/favicon.ico">
	<link rel="stylesheet" type="text/css" href="/css/admin/style.css" />
	<script type="text/javascript" src="/js/jquery-1.4.4.js"></script>
	<script type="text/javascript" src="/js/admin.js"></script>
	<style>
	.siteLink{margin:0 15px;width:55px;word-break: break-all; word-wrap:break-word;float:left;}
	.selected{background-color:#5094CD; font-weight:bold;}
	.selected a{color:#fff;}
	.selected a:link{color:#fff;}
	</style>
</head>

<body>
	
		<#include "/admin/nav.ftl">
		
		<div id="wrapper">
			<div id="nav_trail"><a href="/admin/">后台首页</a> 版块链接管理</div>
			<div id="content">
			
				<!-- 左边菜单 -->
				<#include "/admin/left_menu.ftl">
				<!-- 左边菜单 -->
				
				
				<script>
		menusel('m_itemLink');
	</script>
	
	
				<div class="right_area">
					<div class="cbar">
			            
			              <ul>
			                <li class="cbar-tag-sel"><a href="/admin/item/site/index">版块链接列表</a></li>
			    			<li><a href="add">增加版块链接</a></li>
			              </ul>
			         </div><!-- cbar end -->
			         
         
            
            
			         <div class="cbox">
          
	         
			   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table-f">
			      
			       <tr>
			        <td align="right" width="15%" class="formtdl">按栏目查看：</td>
			        <td><span class="siteLink <#if !currID?exists>selected</#if>"><a href="index">全部</a></span>
			        	<#if itemList?exists>
			        		<#list itemList as item>
			        			<span class="siteLink <#if currID?exists && item.id==currID>selected</#if>"><a href="?itemID=${item.id}">${item.name}</a> </span>
			        		</#list>
			        	</#if>
			        	</div>
			        </td>
			     
			      </tr>
		 	      
			  </table>
		  	
  
            <div class="ydbar">
      			<div class="info-title">版块链接列表</div>
    		</div>	
            <table align="center" width="100%" cellspacing="0" cellpadding="0" border="0" class="table_b">
              <tbody><tr class="tab-top">
                <td align="center"><strong>ID</strong></td>
                <td align="center" width="30%"><strong>链接名称</strong></td>
                <td align="center" width="20%"><strong>版块</strong></td>
                <td align="center" width="10%"><strong>点击数</strong></td>
                <td align="center" width="10%"><strong>排序</strong></td>
                <td align="center" width="10%"><strong>状态</strong></td>
                <td align="center" width="20%"><strong>操作</strong></td>
              </tr>              
               
              <#if linkList?exists>
		                   		<#list linkList as link>
	              <tr onMouseout="this.className=&quot;table-d-c&quot;" onMouseover="this.className=&quot;td-m&quot;" class="table-d-c">
	              	<input type="hidden" name="infoID" value="${link.id}" />
					<td align="center">${link.id}</td>	
					<td align="center"><a href="${link.url?default("")}">${link.siteName?default("")}</a></td>
					<td align="center">${link.itemID?default("")}</td>
					<td align="center">${link.clickNum?default("")}</td>
					<td align="center">${link.sort?default("")}</td>
					<td align="center"><#if link.state==0><span class="red">冻结<span><#elseif link.state==1>正常</#if></td>	          
	                <td align="center"><a href="edit?id=${link.id}">编辑</a> |
	                <#if link.state==0>
	                		<a href="restore?id=${link.id}">恢复</a>
	                <#elseif link.state==1>
	                	<a href="freeze?id=${link.id}">冻结</a>
	                </#if>
	                 
	                </td>
	              </tr>
			   </#list>
			</#if>
               
			     <tr>
                	<td colspan="4" align="center"><div class="include_page"><#include "/admin/page.ftl"></div></td>
				 </tr> 
            </tbody></table>
            
             
             
  	
				
             
          </div><!-- cbox end -->
            
			            
			        </div><!-- right_area end -->
				</div>
				
				<div class="clear"></div>
			</div> <!-- content end-->
			<div id="footer"></div>
   		</div><!-- wrapper end-->
</body>
</html>
